package com.qf.spring.framework;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lwc
 * @date 2021/10/25 18:44
 * @Description
 */
public class BeanDefination {
    //封装了bean的  id
    private String beanId;
    //封装了bean的 class属性值
    private String beanClass;

    //封装了bean的属性信息  键是属性名
    private Map<String,PropertyDefination> propsMap = new HashMap<>();

    public BeanDefination() {
    }

    public BeanDefination(String beanId, String beanClass, Map<String, PropertyDefination> propsMap) {
        this.beanId = beanId;
        this.beanClass = beanClass;
        this.propsMap = propsMap;
    }

    public String getBeanId() {
        return beanId;
    }

    public void setBeanId(String beanId) {
        this.beanId = beanId;
    }

    public String getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(String beanClass) {
        this.beanClass = beanClass;
    }

    public Map<String, PropertyDefination> getPropsMap() {
        return propsMap;
    }

    public void setPropsMap(Map<String, PropertyDefination> propsMap) {
        this.propsMap = propsMap;
    }

    @Override
    public String toString() {
        return "BeanDefination{" +
                "beanId='" + beanId + '\'' +
                ", beanClass='" + beanClass + '\'' +
                ", propsMap=" + propsMap +
                '}';
    }
}
